package com.example.WebSocketDemo.service;

import com.example.WebSocketDemo.bean.Message;
import org.springframework.stereotype.Service;

import java.util.List;


public interface MessageService {
    void insertMessage(Message message);

    void insertUnReadMessage(Message message);

    void updateUnReadMessage(String username);

    List<Message> getMessageByFromUserAndToUserAndChatType(String from, String to, String type);

    Message getRecentMessage(String username,String friendName);

    List<Message> getUnAcceptedMessage(String username);
}
